package cn.getech.data.metadata.model.req.collectiontableinfo;

import cn.getech.data.intelligence.common.validator.group.AddGroup;
import cn.getech.data.intelligence.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(description = "元数据变更通知请求")
@Data
public class CollectionTableInfoChangeNotifyReq implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer id;
    @ApiModelProperty(value = "是否开启变更通知 0:关闭 1:开启")
    @NotNull(message = "变更通知不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer enableChangeNotify;
}
